<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ include file="/manage/system/pageBase.jsp" %>
<%@ page info="企业信息" %>

<form action="<%=path %>/manage/enterprise" name="form" id="form" method="post">
    <div style="height:auto!important;height:550px;min-height:550px;">
        <h3 style="border-bottom: 1px solid #D7D7D7;color: #666666;font-size: 28px;padding-bottom: 20px;margin-bottom: 30px;">
            <%=getServletInfo()%>
            <a href="<%=path %>/manage/enterprise/selectList" class="btn btn-primary"
               style="padding: 2px 15px;float:right;"><i class="icon-double-angle-left"></i>返回列表</a>
        </h3>
        <table width="100%" border="0" cellspacing="0" cellpadding="10" class="tableBasic">
            <tr style="display: none;">
                <td>id</td>
                <td><input type="hidden" value="${e.id}" name="id" label="id"/></td>
            </tr>
            <tr>
                <th style="text-align: right;width: 150px;">公司名称</th>
                <td style="text-align: left;">
                    <input type="text" size="40" value="${e.enterprisename}" name="enterprisename"
                           data-rule="length[1~45];"
                           id="enterprisename"/>
                </td>
            </tr>
            <tr>
                <th style="text-align: right;">服务热线</th>
                <td style="text-align: left;">
                    <input type="text" size="40" value="${e.enterprisetel}" name="enterprisetel"
                           data-rule="length[1~45];"
                           id="enterprisetel"/>
                </td>
            </tr>
            <tr>
                <th style="text-align: right;">公司邮箱</th>
                <td style="text-align: left;">
                    <input type="text" size="40" value="${e.enterpriseemail}" name="enterpriseemail"
                           data-rule="length[1~45];"
                           id="enterpriseemail"/>
                </td>
            </tr>
            <tr>
                <th style="text-align: right;">公司地址</th>
                <td style="text-align: left;">
                    <input type="text" size="40" value="${e.enterpriseaddress}" name="enterpriseaddress"
                           data-rule="length[1~45];"
                           id="enterpriseaddress"/>
                </td>
            </tr>
            <tr>
                <th style="text-align: right;">联系人</th>
                <td style="text-align: left;">
                    <input type="text" size="40" value="${e.contactperson}" name="contactperson"
                           data-rule="length[1~45];"
                           id="contactperson"/>
                </td>
            </tr>
            <tr>
                <th style="text-align: right;">联系电话</th>
                <td style="text-align: left;">
                    <input type="text" size="40" value="${e.contacttel}" name="contacttel"
                           data-rule="length[1~45];"
                           id="contacttel"/>
                </td>
            </tr>
            <tr>
                <th style="text-align: right;">联系人邮箱</th>
                <td style="text-align: left;">
                    <input type="text" size="40" value="${e.contactemail}" name="contactemail"
                           data-rule="length[1~45];"
                           id="contactemail"/>
                </td>
            </tr>
            <tr>
                <th style="text-align: right;">经度</th>
                <td style="text-align: left;">
                    <input type="text" size="40" value="${e.longitude}" name="longitude"
                           data-rule="length[1~45];"
                           id="longitude"/>
                </td>
            </tr>
            <tr>
                <th style="text-align: right;">纬度</th>
                <td style="text-align: left;">
                    <input type="text" size="40" value="${e.latitude}" name="latitude"
                           data-rule="length[1~45];"
                           id="latitude"/>
                </td>
            </tr>
            <tr>
                <td colspan="2" style="text-align: center;">
                    <c:choose>
                        <c:when test="${e.id!=0}">
                            <button method="update" onclick="commit(this)" class="btn btn-info"
                                    style="padding:2px 15px;">
                                保存
                            </button>
                        </c:when>
                        <c:otherwise>
                            <button method="insert" onclick="commit(this)" class="btn btn-info"
                                    style="padding:2px 15px;">
                                新增
                            </button>
                        </c:otherwise>
                    </c:choose>
                </td>
            </tr>
        </table>
    </div>
</form>

<script type="text/javascript">
    function commit(obj) {
        var _form = $("form");
        _form.attr("action", $(obj).attr("method"));
        _form.submit();
    }
</script>

<%@ include file="/manage/system/baseFoot.jsp" %>